package com.smedi.ismedi.organization.core.port.adapter.persistence.mybatis.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.smedi.ismedi.database.starter.annotation.SqlItem;
import com.smedi.ismedi.database.starter.annotation.SqlPermission;
import com.smedi.ismedi.database.starter.interceptor.permission.SqlItemEnum;
import com.smedi.ismedi.organization.core.port.adapter.persistence.model.HrOrganizationEntity;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;

public interface HrOrganizationMapper extends BaseMapper<HrOrganizationEntity> {
    // 查询根节点
    HrOrganizationEntity selectRoot();

    long updateDingDeptKeyByShortName(@Param("shortName") String shortName,@Param("dingDeptKey") String dingDeptKey);
}
